package com.jeect.productservice.service;

import com.jeect.base.domain.Product;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

public interface ProductService {

    @Cacheable(value = "productss",key = "#sku")
    Product getBySku(String sku);

    @CachePut(value="products",key = "#p0.sku")
    void saveProduct(Product product);

    Boolean updateProduct(Product product);
}
